<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>角色管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript" src="${ctxStatic}/modules/sys/role.js"></script>
</head>
<body>
	
	<table id="grid"></table>
    <div id="toolbar">
	   	<table cellspacing="0" cellpadding="0">
			<tr>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-add" onclick="sys.role.showForm()">添加</a></td>
				<td><div class="datagrid-btn-separator"></div></td>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-edit" onclick="sys.role.showEditForm()">修改</a></td>
				<td><div class="datagrid-btn-separator"></div></td>
				<td><a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconcls="icon-remove" onclick="sys.role.remove()">删除</a></td>
			</tr>
		</table>
    </div>
	
	<div id="fmDlg" class="easyui-dialog" title="角色信息" modal="true" width="500" height="230" buttons="#dlg-buttons" closed="true">
		<form id="fm" style="padding: 5px;">
			<input type="hidden" id="id" name="id" /> 
			<table>
				<tr height="30">
					<td width="60" align="right">角色名称</td>
					<td><input class="easyui-textbox" required="true" style="width: 150px;" id="name" name="name" /></td>
					<td width="60" align="right">英文名称</td>
					<td>
						<input class="easyui-textbox" id="enname" name="enname" style="width:150px;" />
					</td>
				</tr>
				<tr height="30">
					<td width="60" align="right">类型</td>
					<td><input class="easyui-combobox" style="width:150px;" id="type" name="type" /></td>
					<td width="60" align="right">系统数据</td>
					<td><input class="easyui-combobox" style="width:150px;" id="isSys" name="isSys" /></td>
				</tr>
				<tr height="30">
					<td width="60" align="right">角色授权</td>
					<td colspan="3"><input class="easyui-combotree" style="width:365px;" id="permissions" name="permissions" /></td>
				</tr>
				<tr height="30">
					<td width="60" align="right">备注</td>
					<td colspan="3"><input class="easyui-textbox" style="width:365px;height:35px;" id="remark" name="remark" /></td>
				</tr>
			</table>
		</form>
	</div>
	<div id="dlg-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-ok" onclick="sys.role.saveOrupdate()">确定</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="$('#fmDlg').dialog('close')">取消</a> 
	</div>
	
</body>
</html>